AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question

A Lambda function is invoked by an Auto Scaling lifecycle hook when a new Amazon EC2 instance launches. The function must install the latest CloudWatch agent by calling the AWS-provided Systems Manager document AWS-ConfigureAWSPackage, passing the instance ID, and wait until the operation finishes before completing the lifecycle action. Which AWS SDK API should the function invoke to meet these requirements with minimal custom code?

  • Call the Systems Manager StartAssociationsOnce API to apply the AWS-ConfigureAWSPackage association to the instance.

  • Call the Systems Manager SendCommand API and poll the command until the status is Success.

  • Call the Systems Manager StartAutomationExecution API and track the execution until it completes.

  • Call the Systems Manager CreateDocument API to upload AWS-ConfigureAWSPackage and rely on the lifecycle hook to continue after the upload succeeds.

AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Settings & Objectives
Random Mixed
Questions are selected randomly from all chosen topics, with a preference for those you haven’t seen before. You may see several questions from the same objective or domain in a row.
Rotate by Objective
Questions cycle through each objective or domain in turn, helping you avoid long streaks of questions from the same area. You may see some repeat questions, but the distribution will be more balanced across topics.

Check or uncheck an objective to set which questions you will receive.

Bash, the Crucial Exams Chat Bot
AI Bot