kind: mc

question:
Amber framework docs (Set Encryption Key): Copy the key from ____ and set it to env, like so:
Which term fills the blank?
A) {project_name}/config
B) chat_room:
C) .encryption_key
D) .crystal-version
Answer with a single letter (A, B, C, or D).

gold: C


slang

kind: mc

question:
Amber framework docs (Working with Views): [Amber Generators](https://docs.amberframework.org/amber/cli/generate) support ____ and `ecr` templates using the `-t` option when creating a new project.
Which term fills the blank?
A) slang
B) redirect_to
C) Dockerfile
D) {project_name}/config/environments
Answer with a single letter (A, B, C, or D).

gold: A


kind: mc

question:
Amber framework docs (The Test Environment): In this case, we can modify our test environment by changing the options found in ____.
Which term fills the blank?
A) Amber::WebSockets::ClientSocket
B) config/environments/test.yml
C) includes
D) :checkbox
Answer with a single letter (A, B, C, or D).

gold: B


config/webpack

kind: mc

question:
Amber framework docs (The `web` container): You can see the webpack configuration in the ____ directory to see what assets are compiled.
Which term fills the blank?
A) config/database.yml
B) channel.push
C) .delete
D) config/webpack
Answer with a single letter (A, B, C, or D).

gold: D


kind: mc

question:
Amber framework docs (Introduction): * ____ - Called when a user leaves the channel.
Which term fills the blank?
A) config/routes.cr
B) with
C) handle_leave
D) Resources
Answer with a single letter (A, B, C, or D).

gold: C


api/index

kind: mc

question:
Amber framework docs (Methods and Actions): Controllers are defined as such: As an example, if a user goes to ____ in your application to add a new client, Amber will create an instance of **ApiController** and call it's **index** method
Which term fills the blank?
A) has_and_belongs_to_many
B) save
C) api/index
D) config/
Answer with a single letter (A, B, C, or D).

gold: C


#valid?

kind: mc

question:
Amber framework docs (Validation API): ____ Returns true if all params are valid or false otherwise.
Which term fills the blank?
A) #valid?
B) --back
C) Amber::Router::File
D) .delete
Answer with a single letter (A, B, C, or D).

gold: A


database

kind: mc

question:
Amber framework docs (docker-compose.yml): It includes the ____, `mailcatcher`, `migrate`, `app`, and `web` containers.
Which term fills the blank?
A) database
B) config/database.yml
C) bin/{your-app-name}
D) FormBuilder.form
Answer with a single letter (A, B, C, or D).

gold: A


amber

kind: mc

question:
Amber framework docs (From Source): Download and install ____ **NOTE:** At the time of this writing, v1.4.1 is the current stable release, but you should use the most recent tag in place of that.
Which term fills the blank?
A) .buildpacks
B) amber
C) render
D) chat_room
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Encrypted Environment Settings): **Never commit the encryption key!** Setup your production machine and use the variable ____ See more on [encrypt section](../cli/encrypt.md)
Which term fills the blank?
A) chromedriver
B) AMBER_ENCRYPTION_KEY
C) _some_model_or_table_name__field_name
D) chat_room
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Finding Layouts): If there is no such controller-specific layout, Amber will use ____.
Which term fills the blank?
A) @[NoInline]
B) src/views/layouts/application.html.ecr
C) secret_key_base
D) user_join
Answer with a single letter (A, B, C, or D).

gold: B


.gitignore

kind: mc

question:
Amber framework docs (Encrypted Environment Settings): This file is added to ____ to avoid inclusion in version control.
Which term fills the blank?
A) .gitignore
B) :web
C) watch
D) .delete
Answer with a single letter (A, B, C, or D).

gold: A


mustache

kind: mc

question:
Amber framework docs (Working with Views): (Kilt will work with ____ and `temel` as well, but they haven't been tested in amber, so your experience may vary.) Kilt automatically selects the templating engine based on the extension of the file being read (e.g.
Which term fills the blank?
A) mustache
B) src/views/layouts/photos.ecr
C) join
D) distinct
Answer with a single letter (A, B, C, or D).

gold: A


#validate!

kind: mc

question:
Amber framework docs (Validation API): ____ Input must be valid otherwise raises an error.
Which term fills the blank?
A) --back
B) create
C) src/views/layouts/photos.ecr
D) #validate!
Answer with a single letter (A, B, C, or D).

gold: D


kind: mc

question:
Amber framework docs (The `mailcatcher` container): If you generate mailers, it will configure the ____ to point to the mail catcher container.
Which term fills the blank?
A) @foo
B) SMTP_URL
C) AMBER_ENV
D) ./microsecond-blog
Answer with a single letter (A, B, C, or D).

gold: B


{environment}.enc

kind: mc

question:
Amber framework docs (Encrypted Environment Settings): With Amber you can encrypt your environment setting using `amber encrypt {environment}`, this command will open your editor to allow make changes if needed and then encrypt the file ____.
Which term fills the blank?
A) pets
B) gitignore
C) {environment}.enc
D) src/views/layouts/photos.ecr
Answer with a single letter (A, B, C, or D).

gold: C


#validation

kind: mc

question:
Amber framework docs (Validation API): ____ Setup validation rules to be performed.
Which term fills the blank?
A) AMBER_ENCRYPTION_KEY
B) #validation
C) config/routes.cr
D) app/views/shared/_menu.html.ecr
Answer with a single letter (A, B, C, or D).

gold: B


Procfile

kind: mc

question:
Amber framework docs (Create Procfile): Create a ____ at the root of your Amber application and add the following: The Amber buildpack takes care of compiling the project for you.
Which term fills the blank?
A) .first!
B) Procfile
C) button_to
D) shards.yml
Answer with a single letter (A, B, C, or D).

gold: B


#validate!

kind: mc

question:
Amber framework docs (Validation API): This array of errors is populated after running ____ or `#valid?`.
Which term fills the blank?
A) has_many
B) #validate!
C) max
D) crystallang/crystal:{version}
Answer with a single letter (A, B, C, or D).

gold: B


docker-compose.yml

kind: mc

question:
Amber framework docs (docker-compose.yml): The ____ file will allow you to easily get up and running.
Which term fills the blank?
A) .git/hook/post-receive
B) params
C) redirect_to
D) docker-compose.yml
Answer with a single letter (A, B, C, or D).

gold: D


FormBuilder.form

kind: mc

question:
Amber framework docs (FormBuilder in Plain Crystal Code): When using the ____ method in plain Crystal code, the `<<` syntax is required to add the generated field HTML to the form HTML string OR you can use the lower level `String.build` instead:
Which term fills the blank?
A) belongs_to
B) FormBuilder.form
C) spec
D) {project_name}/config/environments
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Custom): Then in your routes file: Alternatively you can use [____](../guides/controllers/respond-with.md) helper.
Which term fills the blank?
A) database_url
B) respond_with
C) handle_message
D) archived
Answer with a single letter (A, B, C, or D).

gold: B


/app

kind: mc

question:
Amber framework docs (Dockerfile): It will also add the project to the ____ folder on the image so you can use this in production as well.
Which term fills the blank?
A) Amber::Server
B) src/views/layouts/photos.ecr
C) /app
D) lldb
Answer with a single letter (A, B, C, or D).

gold: C


config/routes.cr

kind: mc

question:
Amber framework docs (Resources): Let’s add a resource to the ____ Then go to the root of your project, and run `amber routes` This will output the standard matrix of HTTP verbs, controller, action, pipeline, scope, and URI pattern.
Which term fills the blank?
A) bin/myapp
B) config/routes.cr
C) .distinct
D) save
Answer with a single letter (A, B, C, or D).

gold: B


kind: mc

question:
Amber framework docs (Transaction): To rollback a transaction, raise ____ exception.
Which term fills the blank?
A) DB::Rollback
B) has_many
C) save
D) postgres
Answer with a single letter (A, B, C, or D).

gold: A


.amber.yml

kind: mc

question:
Amber framework docs (`amber new`): An ____ configuration file is generated a long with the default application directory structure.
Which term fills the blank?
A) <repository>
B) from
C) .amber.yml
D) index.ecr
Answer with a single letter (A, B, C, or D).

gold: C


resources

kind: mc

question:
Amber framework docs (Resources): The ____ macro is a quick way to setup up resourceful routing for all seven standard actions for a controller in a single line.
Which term fills the blank?
A) #remove_{{relation_name}}
B) resources
C) belong_to
D) controllers
Answer with a single letter (A, B, C, or D).

gold: B


.buildpacks

kind: mc

question:
Amber framework docs (Define Buildpack): Create a file named ____ in the root of your project and with this: ```text https://github.com/amberframework/heroku-buildpack-amber.git
Which term fills the blank?
A) distinct
B) amber
C) link_to
D) .buildpacks
Answer with a single letter (A, B, C, or D).

gold: D


routes.cr

kind: mc

question:
Amber framework docs (The Flash): Make sure the Flash, Session and CSRF pipelines are enabled in your ____ file and in the order that the scaffolding renders them.
Which term fills the blank?
A) params
B) index.ecr
C) save
D) routes.cr
Answer with a single letter (A, B, C, or D).

gold: D


amber

kind: mc

question:
Amber framework docs (Add Amber dependency): First you require to add the ____ shard dependency in your `shard.yml` file: Then execute `shards install` :
Which term fills the blank?
A) Amber.settings.secrets
B) amber
C) #add_{{relation_name}}
D) {project_name}/config
Answer with a single letter (A, B, C, or D).

gold: B


kind: recall

question: According to the Amber web framework documentation (Creating the database), which term completes this statement: Edit the database setting for your current environment by editing the file: Amber looks at the ____ key for the default database connection string. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (6. Printing instance variables), which term completes this statement: For printing ____ var in this code: You can use `self.foo` in the debugger terminal or VSCode GUI. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Set Encryption Key), which term completes this statement: Ensure you first run: To be able to decrypt and use production environment you'll need to set `ENV["AMBER_ENCRYPTION_KEY"]` to the value of your local projects ____ file. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Where), which term completes this statement: The ____ method accepts a block which represents the where clause of the query statement. Answer with just the term.

gold: where


kind: recall

question: According to the Amber web framework documentation (Scopes (aka. Prepared queries)), which term completes this statement: The ____ macro allows you to define a Crystal block containing the desired prepared query statement, and creates a class method on the model to execute. Answer with just the term.

gold: scope


kind: recall

question: According to the Amber web framework documentation (Distinct), which term completes this statement: ____ retrieves database column values without repeats. Answer with just the term.

gold: .distinct


kind: recall

question: According to the Amber web framework documentation (Tips and Tricks for debugging Crystal applications), which term completes this statement: ____ does not show data for variables in crystal yet, see issue [\#4457](https://github.com/crystal-lang/crystal/issues/4457) Fully debugging Crystal applications is not supported yet. Answer with just the term.

gold: lldb


kind: recall

question: According to the Amber web framework documentation (The Amber Heroku Buildpack), which term completes this statement: If you need to use a specific version create a ____ file in your application root directory with the version that should be used \(e.g. Answer with just the term.

gold: .crystal-version


kind: recall

question: According to the Amber web framework documentation (Callbacks), which term completes this statement: The available macros for defining callbacks include: * ____ * `after_save` * `before_create` * `after_create` * `after_initialize` * `before_destroy` They accept method names. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Group), which term completes this statement: ____ allows to add columns for `GROUP BY` section. Answer with just the term.

gold: .group


kind: recall

question: According to the Amber web framework documentation (Debug on VSCode), which term completes this statement: By convention the project directory name is the same as your application name, if you have changed it, please update `${workspaceFolderBasename}` with the name configured inside ____ Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (File Mode), which term completes this statement: The changes you make will **not** modify the original source file, but they will be used when `amber exec` runs the code and saved as a ____ file. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Create Procfile), which term completes this statement: To deploy your app to Dokku you're going to need a ____. Answer with just the term.

gold: Procfile


kind: recall

question: According to the Amber web framework documentation (Define Crystal Version), which term completes this statement: Create a file named ____ in the root of your project with the wanted crystal version: Answer with just the term.

gold: .crystal-version


kind: recall

question: According to the Amber web framework documentation (Eager load), which term completes this statement: Also you can extract the first entity via ____. Answer with just the term.

gold: first


kind: recall

question: According to the Amber web framework documentation (Add A Jennifer Initializer to Configuration), which term completes this statement: Note that we pass the ____ to `Jennifer::Config.read` this will allow Jennifer to use the correct database settings for the environment. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (Finding Layouts), which term completes this statement: For example, rendering actions from the PhotosController class will use ____. Answer with just the term.


kind: recall

question: According to the Amber web framework documentation (1. Install dependencies), which term completes this statement: If you already have ____, `amber`, and a database installed, you can [skip this step](#2.-generate-a-new-amber-application). Answer with just the term.

gold: crystal


kind: recall

question: According to the Amber web framework documentation (Resources), which term completes this statement: In order to use resourceful routing for a particular controller, your controller _must_ define and implement all seven standard actions: ____, `edit`, `new`, `show`, `create`, `destroy`, and `update`. Answer with just the term.

gold: index


kind: recall

question: According to the Amber web framework documentation (CSRF), which term completes this statement: To use CSRF, enable the pipe in your ____ by adding the following pipe to a pipeline. Answer with just the term.