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.
The Systems Manager Automation service is invoked through the StartAutomationExecution API. The request includes the document name and any required inputs passed in the Parameters map. Parameters values must be supplied as string-list pairs, for example Parameters={'InstanceId':['i-0123456789abcdef0']}. The response contains AutomationExecutionId, which uniquely identifies the runbook run and can be used with GetAutomationExecution to monitor progress. SendCommand, StartSession, and CreateAssociation use different APIs (Run Command, Session Manager, State Manager) and return IDs that are not accepted by GetAutomationExecution.
Ask Bash
Bash is our AI bot, trained to help you pass your exam. AI Generated Content may display inaccurate information, always double-check anything important.
What is Systems Manager Automation?
Open an interactive chat with Bash
What is AutomationExecutionId used for?
Open an interactive chat with Bash
Why are Parameters values supplied as string-list pairs?
Open an interactive chat with Bash
What is Systems Manager Automation in AWS?
Open an interactive chat with Bash
What is the purpose of the AutomationExecutionId returned by StartAutomationExecution?
Open an interactive chat with Bash
How are parameters passed when invoking Systems Manager Automation runbooks?
Open an interactive chat with Bash
AWS Certified CloudOps Engineer Associate SOA-C03
Monitoring, Logging, Analysis, Remediation, and Performance Optimization
Your Score:
Report Issue
Bash, the Crucial Exams Chat Bot
AI Bot
Loading...
Loading...
Loading...
Pass with Confidence.
IT & Cybersecurity Package
You have hit the limits of our free tier, become a Premium Member today for unlimited access.
Military, Healthcare worker, Gov. employee or Teacher? See if you qualify for a Community Discount.
Monthly
$19.99
$19.99/mo
Billed monthly, Cancel any time.
3 Month Pass
$44.99
$14.99/mo
One time purchase of $44.99, Does not auto-renew.
MOST POPULAR
Annual Pass
$119.99
$9.99/mo
One time purchase of $119.99, Does not auto-renew.
BEST DEAL
Lifetime Pass
$189.99
One time purchase, Good for life.
What You Get
All IT & Cybersecurity Package plans include the following perks and exams .