
Automating Image Creation with HashiCorp Packer for DevOps - Declaring Packer Variables
Interactive Video
•
Information Technology (IT), Architecture
•
University
•
Practice Problem
•
Hard
Wayground Content
FREE Resource
Read more
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Where can variables be declared in Packer?
Only via the command line
Only in the default KR file
Only in PKRVARS.HCO file
In any file as long as the correct file name is pointed to
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens if you try to assign a string to a boolean variable in Packer?
Packer will assign a default value
Packer will throw an error and the build will fail
Packer will ignore the assignment
Packer will automatically convert the string to boolean
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT a common variable type in Packer?
List
Number
String
Character
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
If a variable type is not specified, what does Packer use to infer the type?
The file name
The first assigned value
The default value
The variable name
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default variable type if neither type nor default is provided in Packer?
Boolean
Number
List
String
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you prevent a variable's value from being displayed in Packer's output?
By marking it as hidden
By marking it as sensitive
By using a special character
By declaring it in a separate file
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens to a sensitive variable in Packer's output?
It is displayed in a separate log file
It is displayed with a warning
It is displayed as asterisks
It is not displayed at all
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?