AWS DevOps I/O Configuration & Sensors 3 — Questions and Answers
Question 1: An AWS CodePipeline action produces output artifacts that must be consumed by a downstream stage. Where are these artifacts stored by default?
- Amazon EFS shared filesystem
- Amazon S3 bucket managed by CodePipeline (Correct answer)
- AWS CodeCommit repository
- Amazon DynamoDB table
Correct answer: Amazon S3 bucket managed by CodePipeline
CodePipeline stores input and output artifacts in an Amazon S3 bucket it manages, which acts as the shared I/O layer between pipeline stages.
Question 2: When configuring an AWS IoT rule to route sensor telemetry into a Lambda function, which component evaluates incoming MQTT messages to determine whether the rule fires?
- Lambda event source mapping
- IoT Policy document
- IoT Rule SQL statement (Correct answer)
- Kinesis Data Firehose selector
Correct answer: IoT Rule SQL statement
The AWS IoT Rules Engine uses a SQL-like statement to filter and transform MQTT messages before routing them to the configured action target.
Question 3: A DevOps team wants CloudWatch to alert when a connected sensor stops publishing data for more than 5 minutes. Which CloudWatch feature handles this?
- Composite alarm with suppressor alarm
- CloudWatch Logs Insights anomaly detection
- EventBridge scheduled rule with Lambda
- Missing Data treatment set to 'breaching' (Correct answer)
Correct answer: Missing Data treatment set to 'breaching'
Setting the missing data treatment to 'breaching' on a CloudWatch alarm causes it to transition to ALARM state when no data points arrive within the evaluation period.
Question 4: In a CodeBuild project, what is the correct buildspec field for specifying files that should be exported as output artifacts to S3?
- artifacts: files: (Correct answer)
- output: exports:
- cache: paths:
- phases: post_build: commands:
Correct answer: artifacts: files:
The 'artifacts' block in buildspec.yml, specifically the 'files' key, lists the files or directories CodeBuild packages and uploads as output artifacts.
Question 5: An AWS IoT Greengrass core device needs to process sensor data locally without internet connectivity. Which Greengrass component type runs the custom processing logic at the edge?
- IoT Device Defender component
- Lambda function component (Correct answer)
- CodeDeploy agent component
- CloudWatch agent component
Correct answer: Lambda function component
AWS IoT Greengrass supports Lambda function components that execute locally on the core device, enabling offline sensor data processing at the edge.
Question 6: When using SSM Parameter Store to supply configuration values, which SSM document syntax retrieves a SecureString parameter during a Run Command execution?
- aws:configurePackage with parameter ARN
- aws:downloadContent from S3
- aws:executeStateMachine with parameter path
- aws:runShellScript referencing {{ssm:parameter-name}} (Correct answer)
Correct answer: aws:runShellScript referencing {{ssm:parameter-name}}
SSM Run Command documents support the {{ssm:parameter-name}} syntax in aws:runShellScript actions to dynamically inject Parameter Store values at execution time.
Question 7: A sensor fleet publishes data to AWS IoT Core. A DevOps engineer wants to archive all raw telemetry to S3 with the least operational overhead. Which IoT rule action achieves this?
- Kinesis Firehose action with S3 destination
- S3 rule action writing directly to a designated bucket (Correct answer)
- SNS action triggering an SQS-to-S3 pipeline
- Lambda action that calls PutObject
Correct answer: S3 rule action writing directly to a designated bucket
The IoT Rules Engine S3 action directly writes matching messages to an S3 bucket with configurable key prefixes, requiring no intermediate services.
An AWS CodePipeline action produces output artifacts that must be consumed by a downstream stage.
Where are these artifacts stored by default?