text: (self.webpackChunkopentezos=self.webpackChunkopentezos||[]).push([[7158],{3933:function(e,t,n){"use strict";n.d(t,{Z:function(){return r}});var a=n(7294),o={button:"button_2UxY"},r=function(e){var t=e.children;return a.createElement("div",{className:o.root},t)}},5164:function(e,t,n){"use strict";n.d(t,{Z:function(){return s}});var a=n(3552),o=n(8227),r=n(7294),s=function(e){function t(t){var n;return(n=e.call(this,t)||this).state={userName:"",sucess:void 0},n}(0,a.Z)(t,e);var n=t.prototype;return n.handleSubmit=function(e){var t=this;e.preventDefault();var n=0,a=0;if(this.props.children.forEach((function(e){"ExamCheckbox"===e.props.mdxType&&(n+=1,"true"===e.props.isCorrect!=!!t.state[e.props.name]&&(a+=1))})),parseInt(a/n*100)<=10){var r=new o.jsPDF({orientation:"landscape",unit:"px",format:[1100,800]});r.addImage("/certif/certificate.jpg","JPEG",0,0,1100,800),r.setFontSize(50),r.text(this.state.userName||"",550,440,{align:"center"}),r.text(this.props.moduleName||"",550,600,{align:"center"}),r.save("Certificate"+this.props.moduleName+".pdf"),this.setState({success:!0})}else this.setState({success:!1})},n.handleChange=function(e){var t;e.preventDefault();var n=e.target,a="checkbox"===n.type?n.checked:n.value,o=n.name;this.setState(((t={})[o]=a,t))},n.handleNameChange=function(e){e.preventDefault(),this.setState({userName:e.target.value})},n.render=function(){var e=this;return r.createElement("form",{onSubmit:function(t){return e.handleSubmit(t)}},this.props.children.map((function(t){return t.props&&"ExamCheckbox"===t.props.mdxType?r.createElement("div",{key:t.props.name},r.createElement("label",null,r.createElement("input",{className:"exam-checkbox",name:t.props.name,type:"checkbox",checked:!!e.state[t.props.name],onChange:function(t){return e.handleChange(t)}}),t.props.children),r.createElement("br",null)):t.props&&"h3"===t.props.mdxType?r.createElement("div",{key:t.props.children},r.createElement("br",null),r.createElement("br",null),t):t})),r.createElement("br",null),r.createElement("br",null),this.state.success?r.createElement("div",{className:"green"},"Congrats, your pdf certificate has been sent!"):r.createElement("div",null,!1===this.state.success&&r.createElement("div",{className:"red"},"Sorry, you made too many mistakes, please try again."),r.createElement("label",null,"Your name:",r.createElement("input",{type:"text",value:this.state.name,onChange:function(t){return e.handleNameChange(t)},className:"exam-name"})),r.createElement("input",{type:"submit",value:"Submit",className:"exam-submit"})))},t}(r.Component)},8156:function(e,t,n){"use strict";n.r(t),n.d(t,{frontMatter:function(){return c},metadata:function(){return m},toc:function(){return u},default:function(){return l}});var a=n(2122),o=n(9756),r=(n(7294),n(3905)),s=n(5164),i=n(3933),c={id:"exam",title:"Exam",authors:"Maxime Sallerin"},m={unversionedId:"deploy-a-node/exam",id:"deploy-a-node/exam",isDocsHomePage:!1,title:"Exam",description:"Question 1",source:"@site/docs/deploy-a-node/exam.md",sourceDirName:"deploy-a-node",slug:"/deploy-a-node/exam",permalink:"/deploy-a-node/exam",editUrl:"https://github.com/octo-technology/OpenTezos/tree/main/docs/deploy-a-node/exam.md",version:"current",lastUpdatedBy:"AymericBethencourt",lastUpdatedAt:1623685436,formattedLastUpdatedAt:"6/14/2021",frontMatter:{id:"exam",title:"Exam",authors:"Maxime Sallerin"},sidebar:"docs",previous:{title:"To go further",permalink:"/deploy-a-node/to-go-further"},next:{title:"Introduction",permalink:"/explorer"}},u=[{value:"Question 1",id:"question-1",children:[]},{value:"Question 2",id:"question-2",children:[]},{value:"Question 3",id:"question-3",children:[]},{value:"Question 4",id:"question-4",children:[]},{value:"Question 5",id:"question-5",children:[]}],d={toc:u};function l(e){var t=e.components,n=(0,o.Z)(e,["components"]);return(0,r.kt)("wrapper",(0,a.Z)({},d,n,{components:t,mdxType:"MDXLayout"}),(0,r.kt)(s.Z,{moduleName:"How to deploy a node",mdxType:"ExamForm"},(0,r.kt)("h3",{id:"question-1"},"Question 1"),(0,r.kt)("p",null,"What are the two main functions of a Tezos node?"),(0,r.kt)(i.Z,{name:"00",isCorrect:"false",mdxType:"ExamCheckbox"},"Creating and endorsing new blocks."),(0,r.kt)(i.Z,{name:"01",isCorrect:"true",mdxType:"ExamCheckbox"},"Running the gossip network and updating the context."),(0,r.kt)("h3",{id:"question-2"},"Question 2"),(0,r.kt)("p",null,"What is true about a node identity?"),(0,r.kt)(i.Z,{name:"10",isCorrect:"false",mdxType:"ExamCheckbox"},"It is a *tz1* address."),(0,r.kt)(i.Z,{name:"11",isCorrect:"true",mdxType:"ExamCheckbox"},"It comprises a pair of cryptographic keys that nodes use to encrypt messages sent to each other."),(0,r.kt)(i.Z,{name:"12",isCorrect:"true",mdxType:"ExamCheckbox"},"It is like a network identity."),(0,r.kt)(i.Z,{name:"13",isCorrect:"false",mdxType:"ExamCheckbox"},"It is a *KT1* address."),(0,r.kt)("h3",{id:"question-3"},"Question 3"),(0,r.kt)("p",null,"What's true about ",(0,r.kt)("em",{parentName:"p"},"snapshot")," for node configuration?"),(0,r.kt)(i.Z,{name:"20",isCorrect:"true",mdxType:"ExamCheckbox"},"Snapshot is a compressed copy of the chain at a certain block."),(0,r.kt)(i.Z,{name:"21",isCorrect:"false",mdxType:"ExamCheckbox"},"It allows the node to synchronize to the Tezos blockchain from the P2P network."),(0,r.kt)(i.Z,{name:"22",isCorrect:"true",mdxType:"ExamCheckbox"},"The mechanism of Snapshots can help in reducing the synchronization time."),(0,r.kt)(i.Z,{name:"23",isCorrect:"false",mdxType:"ExamCheckbox"},"Snapshots of owned rolls are done every 256 blocks and define who can bake."),(0,r.kt)(i.Z,{name:"24",isCorrect:"true",mdxType:"ExamCheckbox"},"`tezos-node snapshot import >snapshot<` is a correct command for importing a snapshot."),(0,r.kt)("h3",{id:"question-4"},"Question 4"),(0,r.kt)("p",null,"What is the default network?"),(0,r.kt)(i.Z,{name:"30",isCorrect:"false",mdxType:"ExamCheckbox"},"Florencenet"),(0,r.kt)(i.Z,{name:"31",isCorrect:"true",mdxType:"ExamCheckbox"},"Mainnet"),(0,r.kt)(i.Z,{name:"32",isCorrect:"false",mdxType:"ExamCheckbox"},"Sandbox"),(0,r.kt)(i.Z,{name:"33",isCorrect:"false",mdxType:"ExamCheckbox"},"Granadanet"),(0,r.kt)("h3",{id:"question-5"},"Question 5"),(0,r.kt)("p",null,"What is the right command to launch your tezos node?"),(0,r.kt)(i.Z,{name:"40",isCorrect:"false",mdxType:"ExamCheckbox"},"`tezos-node start`"),(0,r.kt)(i.Z,{name:"41",isCorrect:"false",mdxType:"ExamCheckbox"},"`tezos-client run`"),(0,r.kt)(i.Z,{name:"42",isCorrect:"true",mdxType:"ExamCheckbox"},"`tezos-node run`"),(0,r.kt)(i.Z,{name:"43",isCorrect:"false",mdxType:"ExamCheckbox"},"`tezos-node bootstrapped`"),(0,r.kt)(i.Z,{name:"44",isCorrect:"false",mdxType:"ExamCheckbox"},"`tezos-client bootstrapped` `tezos-client start`")))}l.isMDXComponent=!0},1695:function(e){function t(e){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}t.keys=function(){return[]},t.resolve=t,t.id=1695,e.exports=t}}]);