0
0
PowerShellscripting~10 mins

AWS PowerShell module - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to import the AWS PowerShell module.

PowerShell
Import-Module [1]
Drag options to blanks, or click blank then click option'
AAWSCLI
BAWS.Tools.Common
CAWSPowerShell.NetCore
DAWS-SDK
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'AWSCLI' which is a command line tool, not a PowerShell module.
Using 'AWS.Tools.Common' which is a dependency module, not the main module.
2fill in blank
medium

Complete the code to list all S3 buckets using AWS PowerShell.

PowerShell
Get-[1]Bucket
Drag options to blanks, or click blank then click option'
AEC2
BS3
CIAM
DLambda
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Get-EC2Bucket' which is not a valid cmdlet.
Using 'Get-IAMBucket' which is incorrect because IAM manages users, not buckets.
3fill in blank
hard

Fix the error in the code to create a new S3 bucket named 'mybucket'.

PowerShell
New-S3[1] -BucketName mybucket
Drag options to blanks, or click blank then click option'
ABucket
BBuckets
CBucketName
DCreateBucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'New-S3Buckets' which is not a valid cmdlet.
Using 'New-S3CreateBucket' which is incorrect syntax.
4fill in blank
hard

Fill both blanks to upload a file 'file.txt' to bucket 'mybucket' with key 'file.txt'.

PowerShell
Write-[1]Object -BucketName mybucket -File [2] -Key file.txt
Drag options to blanks, or click blank then click option'
AS3
Bfile.txt
CS3Object
Dmybucket
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Write-S3' which is incomplete.
Using bucket name instead of file path for the -File parameter.
5fill in blank
hard

Fill all three blanks to get the content of an object 'file.txt' from bucket 'mybucket' and save it to 'output.txt'.

PowerShell
Read-[1]Object -BucketName [2] -Key file.txt -File [3]
Drag options to blanks, or click blank then click option'
AS3
Bmybucket
Coutput.txt
DS3Object
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Read-S3' which is incomplete.
Swapping bucket name and file name parameters.