AWS Certified CloudOps Engineer Associate SOA-C03 Practice Question

A Python-based Lambda function must programmatically trigger a custom Systems Manager Automation runbook named PatchInstance that installs security patches on a single Amazon EC2 instance. The runbook requires an input parameter called InstanceId, and the function must obtain an identifier it can later use to poll the runbook's status. Which AWS SDK for Python (Boto3) call and payload pattern satisfies these requirements?

  • Call ssm.start_session with Target='i-0123456789abcdef0'; read SessionId from the response.

  • Call ssm.create_association with Name='PatchInstance' and InstanceId='i-0123456789abcdef0'; read AssociationId from the response.

  • Call ssm.start_automation_execution with DocumentName='PatchInstance' and Parameters={'InstanceId':['i-0123456789abcdef0']}; read AutomationExecutionId from the response.

  • Call ssm.send_command with DocumentName='PatchInstance' and Targets=[{'Key':'InstanceIds','Values':['i-0123456789abcdef0']}]; read CommandId from the response.

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